<template>
  <div>
     <img src="https://scpic.chinaz.net/files/pic/pic9/202003/zzpic23514.jpg" alt="" >
     <p>这是一个孤独可怜的狗</p>
  </div>
  
</template>
 
<script>
export default {
  name: "MyDog",
  components: {},
  props: {},
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
};
</script>

<style scoped lang="less">
div{
  width: 300px;
  height: 232px;
  box-sizing: border-box;
  overflow: hidden;
  display:inline-block;
  margin: 5px;
  img{
    width: 100%;
    display: block;
  }
  p{
    margin: 0;
    text-align: center;
    height: 30px;
    line-height: 30px;
    border: 1px solid #ccc;
  }
}
</style>